﻿using System;
using System.Windows.Forms;
using System.Threading;
using Egeye.AddIn.Core;

namespace Eyeye
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Thread thread = new Thread(Program.Run);
            thread.SetApartmentState(ApartmentState.STA);
            thread.Start(args);
            thread.Join();
        }

        public static void Run(object args)
        {
            Launcher.Main((string[])args);
        }
    }
}
